package ${package.Service};

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${package.Entity}.${entity};
import ${superServiceClassPackage};

/**
 * @Author: ${author}
 * @Date: ${date}
 * @Description:
 **/
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /**
     * 根据Id查询
     *
     * @param id
     * @return
     */
    ${entity} get${entity}ById(Long id);

    /**
     * 批量查询
     * @param bean
     * @return
     */
    List<${entity}> list${entity}(${entity} bean);

    /**
     * 分页查询
     */
    IPage<${entity}> list${entity}ByPage(Page<${entity}> page, ${entity} bean);

    /**
     * 新增
     * @param bean
     */
    Integer add${entity}(${entity} bean);

    /**
     * 根据id修改
     * @param bean
     */
    Integer modify${entity}ById(${entity} bean);

    /**
     * 根据id删除
     * @param id
     */
    Integer remove${entity}ById(Long id);

}
</#if>
